package com.example.bill.application;

import android.app.Application;

import com.example.bill.repository.MemoRepository;

public class BillApplication extends Application {

    private MemoRepository dataBase;


    private static BillApplication billApplication;

    @Override
    public void onCreate() {
        super.onCreate();

        dataBase = new MemoRepository(getBaseContext(), "bill_db", null, 1);
        BillApplication.billApplication = this;
    }

    public static BillApplication getBillApplication() {
        return billApplication;
    }

    public MemoRepository getDataBase() {
        return dataBase;
    }
}
